<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"

      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form id="cepForm" enctype="multipart/form-data">
                <p:growl id="msg" life="4000"/>
                <h1 class="title">Escrituras</h1>

                <div class="row">
                    <div class="twelve columns"> 
                        <fieldset>
                            <legend> <h4 style="margin:0 0 10px 0">ReadFile</h4></legend>
                            <p:panel id="charterPanel" style="background: none; border: none;" 
                                     styleClass="container_24 clearfix ">
                                <div class="buttonAction">
                                    <!--                                    <p:commandButton  value="Backup" icon="ui-icon-disk"  style="width: 200px;"
                                                                                          update="@form"
                                                                                          actionListener="{managerBackup.backup()}" styleClass="ui-priority-primary" />-->

                                    <p:commandButton id="generatorBtn"  value="Generator File" icon="ui-icon-disk"  style="width: 200px;"
                                                     update="@form"
                                                     actionListener="#{managerReadFile.read()}" styleClass="ui-priority-primary" />
                                    <p:commandButton value="Generator Cep" icon="ui-icon-disk"  style="width: 200px;"
                                                     update="@form"
                                                     actionListener="#{managerReadFile.generatorActCep()}" styleClass="ui-priority-primary" />
                                    <p:commandButton value="Generator Nature" icon="ui-icon-disk"  style="width: 200px;"
                                                     update="@form"
                                                     actionListener="#{managerReadFile.generatorNatureWriting()}" styleClass="ui-priority-primary" />
                                    <!--                                    <p:commandButton value="Tit Doc" icon="ui-icon-disk"  style="width: 200px;"
                                                                                         update="@form" id="generatorBtn" 
                                                                                         actionListener="{managerReadFileTitDoc.read()}" styleClass="ui-priority-primary" />
                                    -->

<!--                                    <p:fileUpload value="{managerReadFileTitDoc.file}" mode="simple" />
                                    <p:commandButton icon="ui-icon-transfer-e-w" value="Upload" ajax="false"
                                                     id="generatorBtn" styleClass="ui-priority-primary" update="@form"  actionListener="{managerReadFileTitDoc.upload()}"/> -->

                                </div>
                                <p:blockUI block="charterPanel" trigger="generatorBtn" > 
                                    <p:graphicImage value="media/css/images/ajax-loader.gif"/>
                                </p:blockUI>
                            </p:panel> 
                        </fieldset>
                    </div>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>

</html>